package com.ch.swagger2.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author cj-ch
 * @date 2018/4/27 下午12:05
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "用户对象",description = "请求用户实体对象")
public class User {

    @ApiModelProperty(value = "用户Id",example = "1",dataType = "Long")
    private Long id;
    @ApiModelProperty(value = "名称",example = "你的名字")
    private String name;

    @ApiModelProperty(value = "年龄",example = "18",dataType = "Integer")
    private Integer age;


}
